package com.core.model.user;

import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;

/**
 * Created with IntelliJ IDEA.
 * User: lxf
 * Date: 2016/4/29
 * Time: 10:50
 * To change this template use File | Settings | File Templates.
 */
@RedisHash("person")
public class Person {

    @Id
    private String id;
    private String firstname;
    private String lastname;
    private int age;

    public Person() {
    }

    public Person(String id, String firstname, String lastname, int age) {
        this.id = id;
        this.firstname = firstname;
        this.lastname = lastname;
        this.age = age;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFirstname() {
        return firstname;
    }

    public void setFirstname(String firstname) {
        this.firstname = firstname;
    }

    public String getLastname() {
        return lastname;
    }

    public void setLastname(String lastname) {
        this.lastname = lastname;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
